package com.matt.domain;

import com.matt.commons.model.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * @Describle This Class Is
 * @Author ZengMin
 * @Date 2018/12/12 16:48
 * @Company Matt
 */
@Entity
@Data
@Table(name = "atta")
@EqualsAndHashCode(callSuper = true)
public class Atta extends Model {

    @Column(columnDefinition = " varchar(10)  COMMENT ' 上传人id ' ")
    private String uid;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 上传人姓名 ' ")
    private String uname;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 孩子 ' ")
    private String cid;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 名称 ' ")
    private String name;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 文件类型 ' ")
    private String fileType;

    @Column(columnDefinition = " int(11)  COMMENT ' 附件类型(0=附件,1=测评) ' ")
    private Integer attaType;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 附件类型中文 ' ")
    private String attaTypeVal;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 地址 ' ")
    private String url;

    @Column(columnDefinition = " varchar(10)  COMMENT ' 创建时间 ' ")
    private Date createTime = new Date();

}
